package com.gopay.checkorder.service.task;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.gopay.checkorder.service.BcdlOrderService;
import com.gopay.checkorder.service.sentinel.BcdlOrderSentinel;

public class BcdlOrderNuccPayTaskImpl implements Task {
    private final static Logger logger = LoggerFactory.getLogger(BcdlOrderNuccPayTaskImpl.class);

    @Resource(name = "bcdlOrderNuccPayService")
    private BcdlOrderService bcdlOrderNuccPayService;

    private String bank;

    private String notifyCpsUrl;

    @Override
    public void doTask() {
        logger.info("网联付款job--开始，bank=" + bank);
        bcdlOrderNuccPayService.processNucc(bank, notifyCpsUrl);
        logger.info("网联付款job--结束，bank=" + bank);
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public void setNotifyCpsUrl(String notifyCpsUrl) {
        this.notifyCpsUrl = notifyCpsUrl;
    }

}
